package com.gisuni.sddc.platformManager.model;

import java.util.Date;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;




/**
 * 服务注册
* @author land
 */
@Table(value = "SDDCGISPLATFORM.SERVER_INFO")
public class ServerInfo   {//

	// Fields
	@Column(value = "ID" )
	@Name
	private String id;
	
	@Column(value = "SERVER_NAME" )

	private String serverName;
	
	@Column(value = "SERVER_CODE" )

	private String serverCode;
	
	@Column(value = "TYPE" )

	private String type;
	
	@Column(value = "DYNAMICS_URL" )

	private String dynamicsUrl;
	
	@Column(value = "FEATURE_URL" )

	private String featureUrl;
	
	@Column(value = "STATUS" )

	private String status;
	
	@Column(value = "CREATE_TIME" )

	private Date createTime;
	
	@Column(value = "UPDATE_TIME" )
	private Date updateTime;

	
	@Column(value = "DESCRIPTION")
	private String description;
	

	/** default constructor */
	public ServerInfo() {
	}

	/** minimal constructor */
	public ServerInfo(String id, String serverName) {
		this.id = id;
		this.serverName = serverName;
	}

	/** full constructor */
	public ServerInfo(String id, String serverName, String serverCode,
			String type, String dynamicsUrl, String featureUrl, String status,
			Date createTime, Date updateTime) {
		this.id = id;
		this.serverName = serverName;
		this.serverCode = serverCode;
		this.type = type;
		this.dynamicsUrl = dynamicsUrl;
		this.featureUrl = featureUrl;
		this.status = status;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors

	
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getServerName() {
		return this.serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	
	public String getServerCode() {
		return this.serverCode;
	}

	public void setServerCode(String serverCode) {
		this.serverCode = serverCode;
	}
	
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public String getDynamicsUrl() {
		return this.dynamicsUrl;
	}

	public void setDynamicsUrl(String dynamicsUrl) {
		this.dynamicsUrl = dynamicsUrl;
	}
	
	public String getFeatureUrl() {
		return this.featureUrl;
	}

	public void setFeatureUrl(String featureUrl) {
		this.featureUrl = featureUrl;
	}
	
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ServerInfo))
			return false;
		ServerInfo castOther = (ServerInfo) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getServerName() == castOther.getServerName()) || (this
						.getServerName() != null
						&& castOther.getServerName() != null && this
						.getServerName().equals(castOther.getServerName())))
				&& ((this.getServerCode() == castOther.getServerCode()) || (this
						.getServerCode() != null
						&& castOther.getServerCode() != null && this
						.getServerCode().equals(castOther.getServerCode())))
				&& ((this.getType() == castOther.getType()) || (this.getType() != null
						&& castOther.getType() != null && this.getType()
						.equals(castOther.getType())))
				&& ((this.getDynamicsUrl() == castOther.getDynamicsUrl()) || (this
						.getDynamicsUrl() != null
						&& castOther.getDynamicsUrl() != null && this
						.getDynamicsUrl().equals(castOther.getDynamicsUrl())))
				&& ((this.getFeatureUrl() == castOther.getFeatureUrl()) || (this
						.getFeatureUrl() != null
						&& castOther.getFeatureUrl() != null && this
						.getFeatureUrl().equals(castOther.getFeatureUrl())))
				&& ((this.getStatus() == castOther.getStatus()) || (this
						.getStatus() != null
						&& castOther.getStatus() != null && this.getStatus()
						.equals(castOther.getStatus())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())))
				&& ((this.getUpdateTime() == castOther.getUpdateTime()) || (this
						.getUpdateTime() != null
						&& castOther.getUpdateTime() != null && this
						.getUpdateTime().equals(castOther.getUpdateTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getServerName() == null ? 0 : this.getServerName()
						.hashCode());
		result = 37
				* result
				+ (getServerCode() == null ? 0 : this.getServerCode()
						.hashCode());
		result = 37 * result
				+ (getType() == null ? 0 : this.getType().hashCode());
		result = 37
				* result
				+ (getDynamicsUrl() == null ? 0 : this.getDynamicsUrl()
						.hashCode());
		result = 37
				* result
				+ (getFeatureUrl() == null ? 0 : this.getFeatureUrl()
						.hashCode());
		result = 37 * result
				+ (getStatus() == null ? 0 : this.getStatus().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		result = 37
				* result
				+ (getUpdateTime() == null ? 0 : this.getUpdateTime()
						.hashCode());
		return result;
	}

}